//
//  ApplyClassTableViewCell.m
//  AttendenceSys
//
//  Created by ld on 16/1/19.
//  Copyright © 2016年 窦芳俊. All rights reserved.
//

#import "ApplyClassTableViewCell.h"

@implementation ApplyClassTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self initCell];
    }
    return self;
}

- (void)initCell
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    _classRowLab = [[UILabel alloc] initWithFrame:CGRectMake(12, 10, 12, 25)];
    [_classRowLab setBackgroundColor:[UIColor clearColor]];
    _classRowLab.font = [UIFont systemFontOfSize:16];
    [_classRowLab setTextAlignment:NSTextAlignmentLeft];
    _classRowLab.textColor = RGB(102, 102, 102);
    [self.contentView addSubview:_classRowLab];
    
    _classTimeLab = [[UILabel alloc] initWithFrame:CGRectMake(36, 10, 50, 25)];
    [_classTimeLab setBackgroundColor:[UIColor clearColor]];
    _classTimeLab.font = [UIFont systemFontOfSize:16];
    [_classTimeLab setTextAlignment:NSTextAlignmentLeft];
    _classTimeLab.textColor = RGB(102, 102, 102);
    [self.contentView addSubview:_classTimeLab];
    
    _classContentLab = [[UILabel alloc] initWithFrame:CGRectMake(86, 10, [UIScreen mainScreen].bounds.size.width-86-25-20, 25)];
    [_classContentLab setBackgroundColor:[UIColor clearColor]];
    _classContentLab.font = [UIFont systemFontOfSize:16];
    [_classContentLab setTextAlignment:NSTextAlignmentLeft];
    _classContentLab.textColor = RGB(102, 102, 102);
    
    _claSeleImage = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-44.5,16,19.5,13)];
    [_claSeleImage setImage:[UIImage imageNamed:@"ic_check"]];
    _claSeleImage.hidden = YES;
    [_claSeleImage setBackgroundColor:[UIColor clearColor]];
    [self.contentView addSubview:_claSeleImage];
    
    UIImageView* lineView = [[UIImageView alloc] initWithFrame:CGRectMake(0,ApplyClassCellHeight-1,[UIScreen mainScreen].bounds.size.width,1)];
    [lineView setBackgroundColor:RGB(240, 240, 240)];
    [self.contentView addSubview:lineView];
    
    [self.contentView addSubview:_classContentLab];
    
}

@end
